console.log('worker.js')

! function timedCount() {
    for (let i = 0; i < 100; i++) {
        setTimeout(() => {
            postMessage(i);
        }, 1000 * i)

    }
}()